﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Microsoft.SharePoint;
using Microsoft.SharePoint.WebPartPages;

namespace ITManagerProject
{
    public class MainPages : Page
    {
        protected Panel MainPage;
        private const string _ascxPath = @"~/_CONTROLTEMPLATES/ITManagerProject/HomePageControl.ascx";
        
        protected void Page_Load(object sender, EventArgs e)
        {

           Control con = Page.LoadControl(_ascxPath);
           MainPage.Controls.Add(con);
        
        }
        /// <summary>
        /// Kiểm tra tag form có runat= server hay không.
        /// </summary>
        /// <param name="control">Autorender HtmlCode</param>
        public override void VerifyRenderingInServerForm(Control control)
        {
            return;
        }
    }
}
